import { Pagination } from "antd";
import css from "./index.module.scss";
interface pageType {
  total: number;
  change: (val: number) => void;
  current: number;
}
const App = (props: pageType) => {
  const { total, change, current } = props;

  return (
    <div className={css.pages}>
      <Pagination
        current={current}
        total={total}
        onChange={change}
        pageSize={20}
      />
    </div>
  );
};

export default App;
